<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE4 {
	font-size: 12px;
	color: #1F4A65;
	font-weight: bold;
}

a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;

}
a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}
a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}
a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.STYLE7 {font-size: 12}

-->
</style>


<script language="javascript" type="text/javascript">

function checkform()
{
	 
	

	if (document.getElementById('mingchenid').value=="")
	{
		alert("澡堂名称不能为空");
		return false;
	}
	
	if (document.getElementById('renshuid').value=="")
	{
		alert("每天最大预约人数不能为空");
		return false;
	}
	
	//验证正整数
var reg1 =  /^\d+$/;
	 
	if (document.getElementById('renshuid').value.match(reg1) == null)
	{
		alert("每天最大预约人数必须为正整数");
		return false;
		
	}
	
	return true;
	
}


</script>

</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="img/tab_03.gif" width="15" height="30" /></td>
        <td background="img/tab_05.gif"><img src="img/311.gif" width="16" height="16" /> <span class="STYLE4">${biaoti }</span></td>
        <td width="14"><img src="img/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>

  
  
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="img/tab_12.gif">&nbsp;</td>
        <td bgcolor="e5f1d6">
        
        <form action="${url }" method="post" onsubmit="return checkform()">
        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CECECE" >

          
          
          <tr>
            
            <td height="18" bgcolor="#FFFFFF" class="STYLE2">
            <div align="center" class="STYLE2 STYLE1">
             澡堂名称:
            </div>
            </td>
            <td height="18" bgcolor="#FFFFFF">
            <div align="left" class="STYLE2 STYLE1">
            <input  type="text" name="mingchen"  id='mingchenid'  size="30"  value="${bean.mingchen }" />
            </div>
            </td>
           
          </tr>
          
          <tr>
            
            <td height="18" bgcolor="#FFFFFF" class="STYLE2">
            <div align="center" class="STYLE2 STYLE1">
             每天最大预约人数:
            </div>
            </td>
            <td height="18" bgcolor="#FFFFFF">
            <div align="left" class="STYLE2 STYLE1">
            <input  type="text" name="renshu"  id='renshuid'  size="30" value="${bean.renshu }"  />
            </div>
            </td>
           
          </tr>
          
          
          
          <tr>
            
            <td height="18" bgcolor="#FFFFFF" class="STYLE2">
            <div align="center" class="STYLE2 STYLE1">
             可预约星期:
            </div>
            </td>
            <td height="18" bgcolor="#FFFFFF">
            <div align="left" class="STYLE2 STYLE1">
        星期一<input type="checkbox" name="week" value="星期一" <c:if test="${week1!=null }">checked</c:if>/>
        星期二<input type="checkbox" name="week" value="星期二" <c:if test="${week2!=null }">checked</c:if>/>
        星期三<input type="checkbox" name="week" value="星期三" <c:if test="${week3!=null }">checked</c:if>/>
        星期四<input type="checkbox" name="week" value="星期四" <c:if test="${week4!=null }">checked</c:if>/>
        星期五<input type="checkbox" name="week" value="星期五" <c:if test="${week5!=null }">checked</c:if>/>
        星期六<input type="checkbox" name="week" value="星期六" <c:if test="${week6!=null }">checked</c:if>/>
        星期日<input type="checkbox" name="week" value="星期日" <c:if test="${week7!=null }">checked</c:if>/>
            </div>
            </td>
           
          </tr>
          
          
          <tr>
            
            <td height="18" bgcolor="#FFFFFF" class="STYLE2">
            <div align="center" class="STYLE2 STYLE1">
             可预约时间段:
            </div>
            </td>
            <td height="18" bgcolor="#FFFFFF">
            <div align="left" class="STYLE2 STYLE1">
        09点到10点<input type="checkbox" name="time" value="09点到10点" <c:if test="${time1!=null }">checked</c:if>/>
        10点到11点<input type="checkbox" name="time" value="10点到11点" <c:if test="${time2!=null }">checked</c:if>/>
        11点到12点<input type="checkbox" name="time" value="11点到12点" <c:if test="${time3!=null }">checked</c:if>/>
        12点到13点<input type="checkbox" name="time" value="12点到13点" <c:if test="${time4!=null }">checked</c:if>/>
        13点到14点<input type="checkbox" name="time" value="13点到14点" <c:if test="${time5!=null }">checked</c:if>/>
        14点到15点<input type="checkbox" name="time" value="14点到15点" <c:if test="${time6!=null }">checked</c:if>/>
        15点到16点<input type="checkbox" name="time" value="15点到16点" <c:if test="${time7!=null }">checked</c:if>/>
        <br/>
        16点到17点<input type="checkbox" name="time" value="16点到17点" <c:if test="${time8!=null }">checked</c:if>/>
        17点到18点<input type="checkbox" name="time" value="17点到18点" <c:if test="${time9!=null }">checked</c:if>/>
        18点到19点<input type="checkbox" name="time" value="18点到19点" <c:if test="${time10!=null }">checked</c:if>/>
        19点到20点<input type="checkbox" name="time" value="19点到20点" <c:if test="${time11!=null }">checked</c:if>/>
        20点到21点<input type="checkbox" name="time" value="20点到21点" <c:if test="${time12!=null }">checked</c:if>/>
        21点到22点<input type="checkbox" name="time" value="21点到22点" <c:if test="${time13!=null }">checked</c:if>/>
        22点到23点<input type="checkbox" name="time" value="22点到23点" <c:if test="${time14!=null }">checked</c:if>/>
        <br/>
            </div>
            </td>
           
          </tr>
          
          
         
		  <tr>
            
            <td height="18" bgcolor="#FFFFFF" class="STYLE2">
            <div align="center" class="STYLE2 STYLE1">
              操作：
            </div>
            </td>
            <td height="18" bgcolor="#FFFFFF">
            <div align="left" class="STYLE2 STYLE1">
            <input type="submit" value="提交" style="width: 60px" />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input  onclick="javascript:history.go(-1);" style="width: 60px" type="button" value="返回" />
            </div>
            </td>
           
          </tr>
		  
         
          
        </table>
        </form>
        </td>
        <td width="9" background="img/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  
  
  
  
</table>
</body>
</html>